package com.multicampus.simplewiki.model;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

public class UserDAOHibernate extends HibernateDaoSupport implements UserDAO {

	public User find(String id) {
		return (User) getHibernateTemplate().get(User.class, id);
	}

	public User add(User user) {
		getHibernateTemplate().save(user);
		return user;
	}
}
